#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>


/* return value: 
 *   -1	incorrect path(failed / not exist)
 *   0	success
 */
int list_file ( char * root);

int is_dir(char *); 





int main(int argc, char * argv[]) {
    if(argc != 3) {
    
       exit(1);
	}
	// file size upper bounder
	int limit = atoi(argv[1]);
	if(limit != 0) {


	}
    
	char * root_path = argv[2];
	if(root_path[0] == '/') {
		// not relative 
        list_file(root_path);
	}
	else {
		// relative, add PWD
		char * base_dir = getenv("PWD");
        
	}
	
	struct stat st_info;
	stat(argv[1], &st_info);
	printf("%d \n", st_info.st_size);
    return 0;
}

int list_file ( char * root ) {
     //if not exist
	 // return -1;
	


}


